public class Test2 {

    public static void main3(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(12);
        myLinkedList.addLast(34);
        myLinkedList.addLast(12);
        myLinkedList.addLast(34);
        myLinkedList.addLast(12);
        myLinkedList.addLast(34);
        myLinkedList.removeAllKey(12);
        myLinkedList.display();
    }
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(12);
        myLinkedList.addLast(23);
        myLinkedList.addLast(23);
        myLinkedList.addLast(34);
        myLinkedList.addLast(34);
        myLinkedList.addLast(34);
        myLinkedList.addLast(34);
        myLinkedList.addLast(34);
        myLinkedList.addLast(45);
        myLinkedList.display();
        myLinkedList.remove(23);
        myLinkedList.display();
        myLinkedList.removeAllKey(34);
        myLinkedList.display();

    }

    public static void main2(String[] args) {

        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(12);
        myLinkedList.addLast(23);
        myLinkedList.addLast(34);
        myLinkedList.addLast(45);
        myLinkedList.display();
        myLinkedList.addIndex(2,999);
        myLinkedList.addIndex(myLinkedList.size(), 999);
        myLinkedList.display();
        System.out.println(myLinkedList.contains(12));
        System.out.println(myLinkedList.contains(9999));
        System.out.println(myLinkedList.contains(99999));
    }
}
